package com.example.administrator.smartbutler.utils;

/**
 * 项目名:SmartButler
 * 包名:com.example.administrator.smartbutler.utils
 * 文件名：ErroeCodeUtils
 * 创建者：justin
 * Created by Administrator on 2018/1/30.
 * 描述：TODO
 */

public class ErroeCodeUtils {

    public static String findError(int errorCode) {

        String errorString = "";

        switch (errorCode) {
            case 101:
                errorString = "用户名或密码不正确";
                break;
            case 202:
                errorString = "用户名已经存在";
                break;
            case 203:
                errorString = "邮箱已经存在";
                break;
            case 210:
                errorString = "旧密码不正确";
                break;
        }

        return errorString;

    }

}
